[NTG-context] Re: usage of conversion in \date

2023-12-18 Thread Peter Münster
On Wed, Nov 29 2023, Peter Münster wrote: > According to https://wiki.contextgarden.net/Command/date: > "The name suffixes indicate number conversions. Any conversion, either > built-in or defined by \defineconversion, can be used there." > > But it does not seem to w

[NTG-context] Re: Support Chinese Date Conversion

2023-11-29 Thread Yihan Song
potential number conversions. And I just realize, for Chinese date, only year section follows the as-is pattern, for month or day, December should be represented as 十二月 instead of 一二, twenty-sixth is 二十六日 instead of 二六, we might need to consider to narrow down the name to be year could be mo

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Peter Münster
On Wed, Nov 29 2023, Hans Hagen wrote: > \setuplanguage[fr][date={day:++,\ ,month,\ ,year}] Unfortunately this does not work as I need. Only the "1" should be converted to 1er, not the other numbers. French is a bit special: You say "le premier novembre" but not "

[NTG-context] Re: Support Chinese Date Conversion

2023-11-29 Thread Hans Hagen
On 11/29/2023 7:56 AM, Yihan Song wrote: Dears, I am opening a PR <https://github.com/contextgarden/context/pull/1> to improve the Chinese date conversion but it seems that repo is just a mirror site without development activities, can someone help to review this one? sending patched

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
On 11/28/2023 6:09 PM, Peter Münster wrote: Hi, When printing a date in French, I would like to convert the "1" to "1\ier", but it does not work as I expect: --8<---cut here---start->8--- \startluacode -- from https://wiki

[NTG-context] Support Chinese Date Conversion

2023-11-28 Thread Yihan Song
Dears, I am opening a PR <https://github.com/contextgarden/context/pull/1> to improve the Chinese date conversion but it seems that repo is just a mirror site without development activities, can someone help to review this one? Thanks in advance. Cheers,

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
Hi, When printing a date in French, I would like to convert the "1" to "1\ier", but it does not work as I expect: --8<---cut here---start->8--- \startluacode -- from https://wiki.contextgarden.net/Command/defineconversion: inter

Re: [NTG-context] save the date: TUG 2023 14–16th of July in Bonn, Germany!

2022-12-21 Thread Henning Hraban Ramm via ntg-context
Am 21.12.22 um 10:33 schrieb Pablo Rodriguez via ntg-context: On 12/19/22 20:59, Henning Hraban Ramm via ntg-context wrote: Not much more to say, it’s still only announced somewhat inofficially... Many thanks for the announcement, Hraban. I’ve just found https://tug.org/tug2023/. Thank

Re: [NTG-context] save the date: TUG 2023 14–16th of July in Bonn, Germany!

2022-12-21 Thread Pablo Rodriguez via ntg-context
On 12/19/22 20:59, Henning Hraban Ramm via ntg-context wrote: > Not much more to say, it’s still only announced somewhat inofficially... Many thanks for the announcement, Hraban. I’ve just found https://tug.org/tug2023/. Just in case it might help, Pablo

[NTG-context] save the date: TUG 2023 14–16th of July in Bonn, Germany!

2022-12-19 Thread Henning Hraban Ramm via ntg-context
Not much more to say, it’s still only announced somewhat inofficially... Hoping to meet you there, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Hans Hagen via ntg-context
/21 4:45 PM, Rik Kabel via ntg-context wrote: >> Hello all, >> >> The example below continues to work with MkIV, but now fails with the >> most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: >> >>  \define\DraftOf   {Draft o

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Hans Hagen via ntg-context
On 10/25/2021 10:31 PM, Rik Kabel wrote: This has been part of my setup interaction for a couple of years. Documents all pass verapdf pdf3a testing. the date only ended up in some places but now we try to be consistent on all places On Oct 25, 2021 15:54, Hans Hagen via ntg-context wrote

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Rik Kabel via ntg-context
Hello all, >> >> The example below continues to work with MkIV, but now fails with the >> most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: >> >>  \define\DraftOf   {Draft of \date} >>  \setupinteraction [date={\DraftOf}] > > Hi Rik, > >

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Hans Hagen via ntg-context
On 10/25/2021 7:54 PM, Pablo Rodriguez via ntg-context wrote: On 10/25/21 4:45 PM, Rik Kabel via ntg-context wrote: Hello all, The example below continues to work with MkIV, but now fails with the most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: \define\DraftOf   {Draft of \date

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Pablo Rodriguez via ntg-context
On 10/25/21 4:45 PM, Rik Kabel via ntg-context wrote: > Hello all, > > The example below continues to work with MkIV, but now fails with the > most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: > > \define\DraftOf   {Draft of \date} > \setupinteraction [dat

Re: [NTG-context] Failure to compile with new date code

2021-10-25 Thread Wolfgang Schuster via ntg-context
Rik Kabel via ntg-context schrieb am 25.10.2021 um 16:45: Hello all, The example below continues to work with MkIV, but now fails with the most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: \define\DraftOf   {Draft of \date} \setupinteraction [date={\DraftOf}] \starttext

[NTG-context] Failure to compile with new date code

2021-10-25 Thread Rik Kabel via ntg-context
Hello all, The example below continues to work with MkIV, but now fails with the most recent (ConTeXt  ver: 2021.10.24 21:45) LMTX: \define\DraftOf   {Draft of \date} \setupinteraction [date={\DraftOf}] \starttext Fail with LMTX, works with MkIV. \stoptext If the answer

Re: [NTG-context] setting date in \setupinteraction

2021-10-21 Thread Pablo Rodriguez via ntg-context
nt timezone >> though. >> >> Requires the below patch. >[...] > i'll fix it but also clean up the existing code a bit > > (much has to do with omitting date and is for comparison reasons) Many thanks for the fix. It would be great that current timezone doesn’t overwri

Re: [NTG-context] setting date in \setupinteraction

2021-10-20 Thread Hans Hagen via ntg-context
ch. Michal --- a/tex/context/base/mkiv/core-con.lua +++ b/tex/context/base/mkiv/core-con.lua @@ -1991,7 +1991,7 @@ function converters.totime(s) end local n = tonumber(s) if n and n >= 0 then -return date("*t",n) +return osdate("*t",n)

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Michal Vlasák via ntg-context
> \setupinteraction[state=start, > > date={2022-02-02T12:00:21+02:00}] > > \starttext > > This document is from 02.02.2020 at 12:00:21. > > \stoptext > > > > This parameter sets the "ModDate" is that what you are after? > > Hi M

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Pablo Rodriguez via ntg-context
On 10/19/21 6:23 PM, Michal Vlasák via ntg-context wrote: > On Tue Oct 19, 2021 at 5:47 PM CEST, Pablo Rodriguez via ntg-context wrote: > [...] > So this works: > > > \setupinteraction[state=start, > date={2022-02-02T12:00:21+02:00}] > \starttext >

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Michal Vlasák via ntg-context
On Tue Oct 19, 2021 at 5:47 PM CEST, Pablo Rodriguez via ntg-context wrote: > Dear list, > > I have the following sample: > > \setupinteraction[state=start, > date={02.02.2022}] > \starttext > This document is from 02.02.2020 at 12:00:21. > \stoptext > > Which

[NTG-context] setting date in \setupinteraction

2021-10-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start, date={02.02.2022}] \starttext This document is from 02.02.2020 at 12:00:21. \stoptext Which is the right way to get PDF dates working with \setupinteraction? Many thanks for your help, Pablo -- http

[NTG-context] date formatting

2021-07-18 Thread Hans van der Meer
From Wikipedia: In English-language outside North America (mostly in Anglophone Europe and some countries in Australasia), full dates are written as 7 December 1941 (or 7th December 1941) and spoken as "the seventh of December, nineteen forty-one" (exceedingly common usage of "the" and

Re: [NTG-context] missing space after \date[] (was: printing the current date)

2021-03-13 Thread Hans Hagen
that mean? Is that going to be changed? How should \date[] be used now in the text? For now, I do it like "bla \date[d=3]\ bla". Is there a nicer way? TIA for any hints, The problem with an interface with optional arguments is that it has to look ahead. There are actually some macro

[NTG-context] missing space after \date[] (was: printing the current date)

2021-03-12 Thread Peter Münster
nged? How should \date[] be used now in the text? For now, I do it like "bla \date[d=3]\ bla". Is there a nicer way? TIA for any hints, -- Peter ___ If your question is of interest to others as well,

Re: [NTG-context] printing the current date

2021-01-27 Thread Wolfgang Schuster
Hans Hagen schrieb am 27.01.2021 um 22:31: On 1/27/2021 6:28 PM, Peter Münster wrote: On Sun, Jan 10 2021, Peter Münster wrote: \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date

Re: [NTG-context] printing the current date

2021-01-27 Thread Hans Hagen
On 1/27/2021 6:28 PM, Peter Münster wrote: On Sun, Jan 10 2021, Peter Münster wrote: \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date[]? Reporting here is faster. Can (lazy me

Re: [NTG-context] printing the current date

2021-01-27 Thread Peter Münster
On Sun, Jan 10 2021, Peter Münster wrote: > \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date[]? TIA, -- Pe

[NTG-context] LMTX/MkIV difference in date handling

2021-01-14 Thread Henning Hraban Ramm
ConTeXt ver: 2021.01.11 17:27 LMTX fmt: 2021.1.11 The following works in MkIV, but not in LMTX: \def\Jahr{\currentdate[year]} \settaggedmetadata[ rights={© \Jahr{} Me} ] \starttext \strut \stoptext The error message is: 1 \def\Jahr{\currentdate[year]} 2 3

Re: [NTG-context] printing the current date

2021-01-10 Thread Peter Münster
On Sun, Jan 10 2021, Fabrice L wrote: > For exemple: > > \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m] Sorry, I should have mentioned, that I use the latest version: context-2021.01.08 --

Re: [NTG-context] printing the current date

2021-01-10 Thread Fabrice L
> Le 10 janv. 2021 à 13:23, Peter Münster a écrit : > > Hi, > > I would expect, that \currentdate prints the current date, but it does > not: > > --8<---cut here---start->8--- > \starttext > \date[d=1]% first day of th

[NTG-context] printing the current date

2021-01-10 Thread Peter Münster
Hi, I would expect, that \currentdate prints the current date, but it does not: --8<---cut here---start->8--- \starttext \date[d=1]% first day of this month, ok \date% again first day, last parameters are used, this is ok \currentdate% same as \date,

[NTG-context] space after \date[]

2021-01-08 Thread Peter Münster
Hi, There is no more space after \date[] with the latest version. Is this wanted, or a bug? Example: \starttext \date[d=1] X % no space before "X" \stoptext Kind regards, -- Peter ___ If you

[NTG-context] tikz-module not up to date (synchronisation problem with contextgarden?)

2021-01-08 Thread Christian Prim
Hi It's been a long time, since a solution for the 'module wrapping error' in tikz has been proposed here in the list: https://mailman.ntg.nl/pipermail/ntg-context/2017/090404.html Since July a fix has been published:

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Adam Reviczky
Thank you Wolfgang! Adam On Wed, Apr 8, 2020 at 9:11 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Adam Reviczky schrieb am 08.04.2020 um 21:53: > > Thank you Hans and Wolfgang, > > > > I have updated the wiki (https://wiki.contextgarden.net/Com

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Wolfgang Schuster
Adam Reviczky schrieb am 08.04.2020 um 21:53: Thank you Hans and Wolfgang, I have updated the wiki (https://wiki.contextgarden.net/Command/date) with the new dayshort/daylong options, but I seem to get an empty value for every day after day 7, see example: \starttext \date[d=7,m=4,y=2008

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Adam Reviczky
Thank you Hans and Wolfgang, I have updated the wiki (https://wiki.contextgarden.net/Command/date) with the new dayshort/daylong options, but I seem to get an empty value for every day after day 7, see example: \starttext \date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par

Re: [NTG-context] Short weekday option for date command

2020-04-04 Thread Hans Hagen
On 4/4/2020 11:47 AM, Adam Reviczky wrote: Hi, Is there a way to achieve a short weekday option with \date[] to get 3 letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the monthshort either through context or lua? Not currently but I will add the basics (I have to double check

[NTG-context] Short weekday option for date command

2020-04-04 Thread Adam Reviczky
Hi, Is there a way to achieve a short weekday option with \date[] to get 3 letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the monthshort either through context or lua? Thanks, Adam ___ If your

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Hans Hagen
On 3/11/2020 4:54 PM, Axel Kielhorn wrote: Hello Hans and mailing list! Thank you so much. With this example and the help I received earlier from Massi, I’ve been able to write my first finalizer today. It is amazing how powerful luatex is. indeed (and luametatex is supposed to be even bit

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn
Hello Hans and mailing list! Thank you so much. With this example and the help I received earlier from Massi, I’ve been able to write my first finalizer today. It is amazing how powerful luatex is. My project needs some cleanup and documentation but I hope to put it on GitHub soon. After

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn
> Am 11.03.2020 um 15:19 schrieb Hans Hagen : > > On 3/11/2020 3:12 PM, Axel Kielhorn wrote: >>> Am 11.03.2020 um 15:01 schrieb Hans Hagen : >>> >>> On 3/11/2020 2:14 PM, Axel Kielhorn wrote: Had to change it to: \startluacode function

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Hans Hagen
://www.pragma-ade.com/general/manuals/xml-mkiv.pdf as a guide. Currently stuck on converting an ISO format date (eg. 1908-01-10) into something more readable (eg. 10 January 1908) in the output. I presume I should create a function (?luacode) that can take any ISO value and output the readable form

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn
http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf as a >> guide. >> Currently stuck on converting an ISO format date (eg. 1908-01-10) into >> something more readable (eg. 10 January 1908) in the output. I presume I >> should create a function (?luacode) tha

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread mf
Is there not a simple place to get all the up-to-date documentation? If you install ConTeXt from http://www.pragma-ade.nl/install.htm in the installation tree you'll find docs under tex/texmf-context/doc/context/documents/ There you'll always find the docs at their last revision. Massi

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Wolfgang Schuster
On Sat, 29 Feb 2020 12:10:13 +0100 Gerben Wierda wrote: > Hello community, > > I have been (unsuccessfully) hunting for up-to-date tutorials/documentation > on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in > 2011. documentation that is from 2013, o

[NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread Gerben Wierda
Hello community, I have been (unsuccessfully) hunting for up-to-date tutorials/documentation on ConTeXt/LuaTeX/METAPOST. What I find is sites that for instance end in 2011. documentation that is from 2013, or on Pragme-ADE a show-man.pdf PDF with an overview of documentation that doesn’t open

Re: [NTG-context] Up-to-date documentation / tutorials. Where?

2020-02-29 Thread TeXnician
Hi, > Is there not a simple place to get all the up-to-date documentation? maybe not what you are looking for, but I think the list at https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-context-mkiv-documentation is very help

Re: [NTG-context] \date is calculated wrong

2019-09-11 Thread Martin Althoff
On Wed, 2019-09-11 at 08:42 +0200, Hans Hagen wrote: > On 9/11/2019 4:15 AM, Martin Althoff wrote: > > Hi all, > > > > the \date is output wrong. Whatever value is given for d= I get the 11th. > > That is todays > > date. Not sure what would happen tom

Re: [NTG-context] \date is calculated wrong

2019-09-11 Thread Hans Hagen
On 9/11/2019 4:15 AM, Martin Althoff wrote: Hi all, the \date is output wrong. Whatever value is given for d= I get the 11th. That is todays date. Not sure what would happen tomorrow Thanks for any fix suggestions. \starttext \date[d=16,m=9,y=2019][weekday, day,{. }, month, year] \stoptext

[NTG-context] \date is calculated wrong

2019-09-10 Thread Martin Althoff
Hi all, the \date is output wrong. Whatever value is given for d= I get the 11th. That is todays date. Not sure what would happen tomorrow Thanks for any fix suggestions. \starttext \date[d=16,m=9,y=2019][weekday, day,{. }, month, year] \stoptext

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
eur wrote: > Hello, > The date display is incorrect : I get day 28 instead of day 2. > Thank you > Fabrice > > \defineframed >    [headerframed] >    [frame=off, >     height=fit, >     width=fit] &

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Otared Kavian
Hi, On my installation of lmtx (version 2019.08.20 17:34), as well as mkiv (version 2019.08.24 22:42 MKIV) the following gives: \starttext \date[d=25,m=10,y=1999] \stoptext October 09, 1999. So the month and the year are correct, but not the day. Best regards: OK > On 9 Sep 2019, at

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Pablo Rodriguez
On 9/9/19 3:24 PM, Fabrice Couvreur wrote: > Hello, > I just updated my version of ConTeXt and the bug is still present. > Can you confirm ? Hi Fabrice, I confirm that latest beta (from 2019.09.09 13:44), doesn’t change the date in the following sample: \starttext \

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
Hello, I just updated my version of ConTeXt and the bug is still present. Can you confirm ? Thank you. Fabrice Le mer. 28 août 2019 à 16:34, Aditya Mahajan a écrit : > On Wed, 28 Aug 2019, Fabrice Couvreur wrote: > > > Hello, > > The date display is incorrect : I get day 2

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
On Wed, 28 Aug 2019, Fabrice Couvreur wrote: Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed

Re: [NTG-context] \date in LMTX

2019-08-18 Thread Hans Hagen
On 8/18/2019 9:59 AM, Otared Kavian wrote: On 18 Aug 2019, at 05:25, Aditya Mahajan wrote: Hi, There is a bug with \date in LMTX. \starttext \date[d=10] \stoptext does not change the date. Works okay in MKIV. Hi, Actually it does not work in mkiv version 2019.08.14 11:26, nor in lmtx

Re: [NTG-context] \date in LMTX

2019-08-18 Thread Otared Kavian
> On 18 Aug 2019, at 05:25, Aditya Mahajan wrote: > > Hi, > > There is a bug with \date in LMTX. > > \starttext > \date[d=10] > \stoptext > > does not change the date. Works okay in MKIV. Hi, Actually it does not work in mkiv version 2019.08.14 11:26, nor

[NTG-context] \date in LMTX

2019-08-17 Thread Aditya Mahajan
Hi, There is a bug with \date in LMTX. \starttext \date[d=10] \stoptext does not change the date. Works okay in MKIV. Thanks, Aditya ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] \date behaving strange

2019-02-10 Thread martin
Great, that worked. Thanks for the quick solution. Changed the line, then ran: luatools --generate luatools --ini --compile cont-en On 09.02.19 20:59, Hans Hagen wrote: On 2/9/2019 2:39 PM, martin wrote: I'm getting a bit confused. The \date function doesn't result in a formatted date

Re: [NTG-context] \date behaving strange

2019-02-09 Thread Hans Hagen
On 2/9/2019 2:39 PM, martin wrote: I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting

[NTG-context] \date behaving strange

2019-02-09 Thread martin
I'm getting a bit confused. The \date function doesn't result in a formatted date. That goes for some files that are a few weeks old. What am I missing? \starttext \date[d=2,m=3,y= 2018] \stoptext results in: d=2m=3y= 2018 An optional formatting parameter has no effect \date[d=1, m=4, y

Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2018-08-15 Thread Hans Hagen
on converting an ISO format date (eg. 1908-01-10) into something more readable (eg. 10 January 1908) in the output.  I presume I should create a function (?luacode) that can take any ISO value and output the readable form.  The following works but seems to me inefficient. Grateful for any pointers. Mike

[NTG-context] XML to ConTeXt: converting date attribute from ISO date

2018-08-15 Thread Mike O'Connor
stuck on converting an ISO format date (eg. 1908-01-10) into something more readable (eg. 10 January 1908) in the output. I presume I should create a function (?luacode) that can take any ISO value and output the readable form. The following works but seems to me inefficient. Grateful f

[NTG-context] Use of context in lua (was: date calculated with currentdate plus n days)

2018-08-14 Thread Jan U. Hasecke
On 14.08.2018 16:58, Pablo Rodriguez wrote: > I rewrote your sample as (xtables are the only tables I know in ConTeXt): > > \starttext > \startlua > context.startxtable() > context.startxrow() > context.startxcell() > context("Note 1") >

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Pablo Rodriguez
On 08/14/2018 09:24 AM, Henri Menke wrote: > On 14/08/18 17:29, Pablo Rodriguez wrote: >> [...] >> Where are those context.* Lua commands documented? >> >> I want to generate an xtable using Lua code, but I don’t know where to read. > > They aren't documented because they are just the context

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Henri Menke
context.startxtable{frame = "off"} context.NC() context("Note") context.NC() context("Date") context.NR() context.NC() context("Hand in before") context.NC() duedate() context.NR() context.stopxtable() \stopluacode \stopt

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/14/2018 01:46 AM, Henri Menke wrote: > On top of that I recommend to use context.date to get the correct > formatting according to the current language options: > > \def\duedate{\ctxlua{ >local t = os.date('*t', os.time()+ 10 * 24 * 3600) >context.date{ d = t.day, m = t.month, y =

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Henri Menke
On top of that I recommend to use context.date to get the correct formatting according to the current language options: \starttext \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{ d = t.day, m = t.month, y = t.year } }} \duedate \stoptext On

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
On 13.08.2018 17:57, Pablo Rodriguez wrote: > if you don’t mind using Lua, here you have it: > > \starttext > \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent > m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}} > > \duedate > \stoptext > > Just in case

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/13/2018 05:19 PM, Jan U. Hasecke wrote: > Hi all, > > I want to insert a due date for payments in my invoice and I would like > to calculate it from \currentdate. Something like > > define \duedate = \currentdate plus 10 days > > Is this possible? Hi Jan-Ulrich,

[NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
Hi all, I want to insert a due date for payments in my invoice and I would like to calculate it from \currentdate. Something like define \duedate = \currentdate plus 10 days Is this possible? juh ___ If your

Re: [NTG-context] \nopdfcompression and no date information

2018-06-24 Thread Pablo Rodriguez
On 06/24/2018 09:54 PM, Hans Hagen wrote: > On 6/23/2018 6:07 PM, Pablo Rodriguez wrote: >> [...] >> Is there a command (similar to \nopdfcompression) that has the same >> effect than compiling the document with "context --nodates"? > no, and there won't be either because this is a feature creep

Re: [NTG-context] \nopdfcompression and no date information

2018-06-24 Thread Hans Hagen
On 6/23/2018 6:07 PM, Pablo Rodriguez wrote: Dear list, I would like to avoid adding date info in certain PDF documents to be able to regenerate them having the same SHA512s. Is there a command (similar to \nopdfcompression) that has the same effect than compiling the document with "co

[NTG-context] \nopdfcompression and no date information

2018-06-23 Thread Pablo Rodriguez
Dear list, I would like to avoid adding date info in certain PDF documents to be able to regenerate them having the same SHA512s. Is there a command (similar to \nopdfcompression) that has the same effect than compiling the document with "context --nodates"? Many thanks for your he

Re: [NTG-context] Expansion of date inside \section

2016-06-19 Thread Pablo Rodriguez
On 06/19/2016 11:51 PM, Hans Hagen wrote: > [...] > another possibility is > > \enabledirectives[references.bookmarks.preroll] Many thanks for this extremely useful directive, Hans. I have two improvement suggestions for it, shown in the following sample: \def\BookTitle{{\em A \ConTeXt\

Re: [NTG-context] Expansion of date inside \section

2016-06-19 Thread Hans Hagen
On 6/19/2016 10:17 PM, Mojca Miklavec wrote: Hi, I'm trying to generate daily reports and wanted to include the date in bookmarks, but there is some weird (non)expansion going on. I might just as well switch to lua for certain parts of the document (like cycling through dates), but I suspect

Re: [NTG-context] Expansion of date inside \section

2016-06-19 Thread Thomas A. Schmitz
On 06/19/2016 08:17 PM, Mojca Miklavec wrote: Hi, I'm trying to generate daily reports and wanted to include the date in bookmarks, but there is some weird (non)expansion going on. I'm not quite sure what you're trying to do, but are you maybe missing a simple \setuphead[section

Re: [NTG-context] Expansion of date inside \section

2016-06-19 Thread Mojca Miklavec
On 19 June 2016 at 22:17, Mojca Miklavec wrote: > Hi, > > I'm trying to generate daily reports and wanted to include the date in > bookmarks, but there is some weird (non)expansion going on. > > I might just as well switch to lua for certain parts of the document > (like

[NTG-context] Expansion of date inside \section

2016-06-19 Thread Mojca Miklavec
Hi, I'm trying to generate daily reports and wanted to include the date in bookmarks, but there is some weird (non)expansion going on. I might just as well switch to lua for certain parts of the document (like cycling through dates), but I suspect that there must be some trivial hack to prevent

[NTG-context] Include 'urldate' in *.bst (Url citations with last checked date)

2015-09-11 Thread Jens Bertram
Hi, for a document I'm currently writing I need to cite some online resources including their last accessed date. Adding \insertbiburl[..] to a citation style does work fine to get the urls printed. However, the *.bst styles only check for 'lastchecked' tag for a last accessed date. I don't

Re: [NTG-context] Include 'urldate' in *.bst (Url citations with last checked date)

2015-09-11 Thread Alan BRASLAU
The new mkiv bibliography module does not use *.bst files at all. We can handle access date but there needs to be some sort of specification. I believe that the APA style only specifies "Retrieved from". I can work something in to use the fields "lastchecked" and/or "url

Re: [NTG-context] Include 'urldate' in *.bst (Url citations with last checked date)

2015-09-11 Thread Hans Hagen
On 9/11/2015 10:29 AM, Jens Bertram wrote: Hi, for a document I'm currently writing I need to cite some online resources including their last accessed date. Adding \insertbiburl[..] to a citation style does work fine to get the urls printed. However, the *.bst styles only check for 'lastchecked

[NTG-context] Why is context.mkii out of date?

2015-05-03 Thread Mojca Miklavec
Hi, I created some documents with MKII and started wondering why pdfinfo was showing Creator:ConTeXt - 2013.06.07 17:34 Producer: pdfTeX-1.40.16 CreationDate: Sun May 3 11:18:14 2015 ModDate:ConTeXt - 2013.06.07 17:34 I first thought that I accidentally used TeX Live

Re: [NTG-context] Why is context.mkii out of date?

2015-05-03 Thread Pablo Rodriguez
On 05/03/2015 11:27 AM, Mojca Miklavec wrote: [...] (ModDate might also be wrong. In MkIV it's the same as CreationDate. And in MkIV Creator uses one extra space at the beginning.) Hi Mojca, I see another mismatch, http://www.pragma-ade.com/general/qrcs/setup-en.pdf has the following ConTeXt

[NTG-context] Non-shortened month name in \date

2015-04-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, \mainlanguage[cz] \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \stoptext gives: 1 břez. 2000 1 03 2000 1 břez. 2000 Is there a way to get non-shortened month name, i.e. března instead

Re: [NTG-context] Non-shortened month name in \date

2015-04-03 Thread Hans Hagen
On 4/3/2015 1:44 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, \mainlanguage[cz] \starttext \date[d=1,m=3,y=2000][d,~,m,~,y]\par \date[d=1,m=3,y=2000][d,~,mm,~,y]\par \date[d=1,m=3,y=2000][d,~,month,~,y]\par \stoptext gives: 1 břez. 2000 1 03 2000 1 břez. 2000

Re: [NTG-context] expand date from CSV file

2014-12-19 Thread Jaroslav Hajtmar
;-) Thanx Peter. I'm too not thought about solutions :-). I was so focused to mined data from a CSV file, and I've not think much about the appropriate algorithm. I love attentive and thoughtful people (although often I'm not alone such) Maybe I corrected in a subsequent e-mail properly. One

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Jaroslav Hajtmar
Hi Pablo Here is a quick solution. However, it not treat the incorrect input data, ie it requires, however, correct input, otherwise it will collapse ... Jaroslav Hajtmar \usemodule[scancsv] \def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator \startlua parsedate

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Jaroslav Hajtmar
used. Sincerely Jaroslav Hajtmar \usemodule[scancsv] \def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator \startlua local parsedate=thirddata.scancsv.ParseCSVLine('#1','#2'); local day=tonumber(parsedate[1]); local month=tonumber(parsedate[2]); local year

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Peter Münster
On Thu, Dec 18 2014, Jaroslav Hajtmar wrote: if (year2000) then year=year+2000 end; Hi, What about Test;11/11/1999 ... ;-) -- Peter ___ If your question is of interest to others as well, please add

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Pablo Rodriguez
defined in the library, so that it can be successfully used. Many thanks for your reply, Jaroslav. This is exactly what I need. Many thanks for your help, Pablo \usemodule[scancsv] \def\ddmm#1#2#3{% #1 - date, #2 - old separator, #3 - new separator \startlua local parsedate

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Pablo Rodriguez
On 12/18/2014 01:37 PM, Peter Münster wrote: On Thu, Dec 18 2014, Jaroslav Hajtmar wrote: if (year2000) then year=year+2000 end; Hi, What about Test;11/11/1999 ... ;-) Hi Peter, all dates start from this year :-). Pablo -- http://www.ousia.tk

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Jaroslav Hajtmar
Hi Pablo. Peter pointed out an error in my solution. Thanks Peter! His message but pointed out that in fact is not the task as simple as it seems at first glance. In fact, a lot depends on what target group for those you solve a problem resp. whether e.g. date of birth of persons. What does

[NTG-context] expand date from CSV file

2014-12-17 Thread Pablo Rodriguez
Dear list, I have the following sample: \usemodule[scancsv] \unexpanded\def\lineaction{ \Name\ arrived on \Date\\ } \setheader \setsep{;} \setfiletoscan{mail.csv} \starttext \filelineaction \stoptext that reads data from mail.csv: Name;Date

[NTG-context] Date format problems

2014-07-29 Thread A.J. Bonnema
Hi all, I started using ConteXt a while ago, on the side line I still use LaTeX (old habits die hard). When converting my CV to ConTeXt I have a weird date problem. I hope one of you can point me in the right direction. I copy the start of the document from vi (line 4 is the relevant line

Re: [NTG-context] Date format problems

2014-07-29 Thread Herbert Voss
Am 29.07.2014 10:02, schrieb A.J. Bonnema: I started using ConteXt a while ago, on the side line I still use LaTeX (old habits die hard). When converting my CV to ConTeXt I have a weird date problem. I hope one of you can point me in the right direction. I copy the start of the document from

Re: [NTG-context] Date format problems

2014-07-29 Thread A.J. Bonnema
On 07/29/2014 11:14 AM, Herbert Voss wrote: Am 29.07.2014 10:02, schrieb A.J. Bonnema: I started using ConteXt a while ago, on the side line I still use LaTeX (old habits die hard). When converting my CV to ConTeXt I have a weird date problem. I hope one of you can point me in the right

  1   2   3   >